Singularity::Oauth.setup do |config|
  config.server_host = 'http://localhost:3000/'
  config.access_key = '3ae0b097be2e8078f5bab92a124da06a2447811f988c211a338586cceb8b0bcb'
  config.secret_key = '472188dd79e4f5ab6a2ad91e52460f75b7e6e5215661e734698076a184f160e8'
  config.scopes = ['public']
  config.resource = 'User'

  # 用户信息回调
  config.user_info_callback do |user|

  end
end